<?php

/**
 * Abstract Helper for helpers
 * @package Core
 * @subpackage View
 * @category Abstract
 * @author kovacsricsi
 */
abstract class Helper
{
	/**
	 * Attributes for heleper.
	 * @access protected
	 * @var array
	 */
	 protected $_attributes = array();

	/**
	 * Create attribute string for herlper.
	 * @access protected
	 * @return string
	 */
	protected function _createAttributes()
	{
		$attributes = array();

		foreach($this->_attributes as $name => $value) {
			$attributes[] = $name . '="' . $value . '"';
		}

		return " " . join(" ", $attributes) . " ";
	}

	/**
	 * Returns with helper string.
	 * @access public
	 * @return string
	 */
	abstract public function getHelper();
}

?>